package org.akomantoso.core.data.type;

/**
 * This is the list of allowed values for the placement attribute of notes.
 * 
 * <pre>
 *	<xsd:simpleType name="placementType">
 * 		<xsd:restriction base="xsd:string">
 * 			<xsd:enumeration value="side"/>
 * 			<xsd:enumeration value="left"/>
 * 			<xsd:enumeration value="right"/>
 * 			<xsd:enumeration value="bottom"/>
 * 			<xsd:enumeration value="inline"/>
 * 		</xsd:restriction>
 * 	</xsd:simpleType>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/1.0
 */
public enum PlacementType {

	side, left, right, bottom, inline;
	
	public static PlacementType checkValueOf(String name) {
		if (name == null) {
			return null;	
		}
		return valueOf(name);
	}

}